Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use hardware backed keys #125

Merged
merged 4 commits into from
Jul 30, 2024
Merged

Conversation

berendsliedrecht
Copy link
Member

@berendsliedrecht berendsliedrecht commented Jul 16, 2024

  • Just waiting on a new release of credo.

@berendsliedrecht berendsliedrecht marked this pull request as draft July 16, 2024 10:37
@berendsliedrecht berendsliedrecht force-pushed the use-hardware-backed-keys branch from 122fe1e to 1bd09fb Compare July 16, 2024 10:39
keyBackend: KeyBackend.SecureElement,
})
.catch(() => {
throw new Error(`Could not create a hardware-backed key for keytype: '${keyType}'. Only P-256 is supported`)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we want to deal with this? Do we want to make sure secure element is only used for specific credentials? Only using secure env keys makes the wallet useless for phones without one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have a way to detect PID/QEAA usage, and if so, require hardware. But otherwise not use it.

Not sure how yet ... Maybe it can be an app.json config for now (like mediatorDid). As for Funke we now only have to deal with PIDs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we want to do that? Maybe the VCT scheme in the app.json?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think for now just make it a true/false whether to use hardware keys. If yes, you can only use hardware P-256. If no, you can only use software keys

@berendsliedrecht berendsliedrecht force-pushed the use-hardware-backed-keys branch from 1bd09fb to fd39886 Compare July 16, 2024 10:42
@TimoGlastra
Copy link
Member

We can add patches for now (i had to do this for a separate branch recently). Pushed it to this PR

@berendsliedrecht berendsliedrecht force-pushed the use-hardware-backed-keys branch 2 times, most recently from 19a18ad to 2672603 Compare July 24, 2024 13:06
Berend Sliedrecht and others added 3 commits July 29, 2024 14:21
Signed-off-by: Berend Sliedrecht <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
@berendsliedrecht berendsliedrecht force-pushed the use-hardware-backed-keys branch 4 times, most recently from e3f6085 to cd03489 Compare July 30, 2024 12:18
@berendsliedrecht berendsliedrecht force-pushed the use-hardware-backed-keys branch from cd03489 to d77d6a6 Compare July 30, 2024 12:29
@berendsliedrecht berendsliedrecht marked this pull request as ready for review July 30, 2024 12:30
@berendsliedrecht berendsliedrecht merged commit 123796e into main Jul 30, 2024
1 check passed
@berendsliedrecht berendsliedrecht deleted the use-hardware-backed-keys branch July 30, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants